﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebmasterTool/Admin.Master" AutoEventWireup="true"
    CodeBehind="Supporter.aspx.cs" Inherits="Framework.WebmasterTool.Supporter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= btnGroupDelete.ClientID %>").live("click", function () {
                var callFrom = $(this);
                jConfirm('Chắc chắn xoá? Xoá nhóm các hỗ trợ online và hotline của nhóm sẽ mất theo', 'Digisky Confirm Dialog',
                            function (r) {
                                if (r) {
                                    __doPostBack(callFrom.attr('name').replace(/_/g, '$'), '');
                                }
                            });
                return false;
            });
            $("#<%= btnSupportDelete.ClientID %>").live("click", function () {
                var callFrom = $(this);
                jConfirm('Chắc chắn xoá?', 'Digisky Confirm Dialog',
                            function (r) {
                                if (r) {
                                    __doPostBack(callFrom.attr('name').replace(/_/g, '$'), '');
                                }
                            });
                return false;
            });
            $("#<%= btnHotlineDelete.ClientID %>").live("click", function () {
                var callFrom = $(this);
                jConfirm('Chắc chắn xoá?', 'Digisky Confirm Dialog',
                            function (r) {
                                if (r) {
                                    __doPostBack(callFrom.attr('name').replace(/_/g, '$'), '');
                                }
                            });
                return false;
            });
            $("#<%= btnDeleteContactGroup.ClientID %>").live("click", function () {
                var callFrom = $(this);
                jConfirm('Chắc chắn xoá?', 'Digisky Confirm Dialog',
                            function (r) {
                                if (r) {
                                    __doPostBack(callFrom.attr('name').replace(/_/g, '$'), '');
                                }
                            });
                return false;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctlCaption" runat="Server">
    Tư vấn - Hotline
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageContent" runat="Server">
    <asp:Label ID="lblPermissionMessage" runat="server" Font-Bold="true" ForeColor="Red"
        Text="Tài khoản không có quyền truy cập vào trang này" Visible="false"></asp:Label>
    <asp:Panel ID="Panel1" runat="server" Visible="true">
        <center>
            <span style="width: 100%; margin-bottom: 10px; margin-top: 10px; text-align: center;">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List"
                    Font-Bold="true" ValidationGroup="Support" />
                <asp:ValidationSummary ID="ValidationSummary3" runat="server" DisplayMode="List"
                    Font-Bold="true" ValidationGroup="Group" />
                <asp:ValidationSummary ID="ValidationSummary2" runat="server" DisplayMode="List"
                    Font-Bold="true" ValidationGroup="Hotline" />
                <asp:ValidationSummary ID="ValidationSummary4" runat="server" DisplayMode="List"
                    Font-Bold="true" ValidationGroup="ContactGroup" />
                <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
            </span>
        </center>
        <div style="width: 390px; float: left; margin-top: 10px;">
            <div style="padding: 5px; border: solid 1px #ccc; float: left; background: #f4f4f4;">
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Tên nhóm:</span>
                    <asp:TextBox ID="txtGroup" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtGroup"
                        ErrorMessage="Chưa nhập tên nhóm" ValidationGroup="Group" Display="Dynamic">*</asp:RequiredFieldValidator>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Tên nhóm(en):</span>
                    <asp:TextBox ID="txtGroup_en" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Vị trí:</span>
                    <asp:TextBox ID="txtGroupIndex" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Chưa nhập vị trí group"
                        ControlToValidate="txtGroupIndex" ValidationGroup="Group" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator3" runat="server" ErrorMessage="Vị trí group phải là số từ 0 đến 9999"
                        ControlToValidate="txtGroupIndex" ValidationGroup="Group" Display="Dynamic" MinimumValue="0"
                        MaximumValue="9999" Type="Integer">*</asp:RangeValidator>
                </div>
                <div>
                    <asp:Button ID="btnGroupSave" runat="server" Text="Lưu" Width="80px" Style="margin-right: 2px;
                        margin-left: 100px" CommandName="Insert" ValidationGroup="Group" OnClick="btnGroupSave_Click" />
                    <asp:Button ID="btnGroupNew" runat="server" Text="Thêm mới" Width="80px" Style="margin-right: 2px"
                        Visible="false" OnClick="btnGroupNew_Click" />
                    <asp:Button ID="btnGroupDelete" runat="server" Text="Xoá" Width="80px" Visible="false"
                        OnClick="btnGroupDelete_Click" />
                </div>
            </div>
            <div style="padding: 5px; border: solid 1px #ccc; float: left; background: #f4f4f4;
                margin-top: 10px;">
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Nickname:</span>
                    <asp:TextBox ID="txtNickname" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNickname"
                        ErrorMessage="Chưa nhập nickname" ValidationGroup="Support" Display="Dynamic">*</asp:RequiredFieldValidator>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Nick:</span>
                    <asp:DropDownList ID="ddlTypeSupport" runat="server">
                        <asp:ListItem Text="Yahoo" Value="yahoo" />
                        <asp:ListItem Text="Skype" Value="skype" />
                    </asp:DropDownList>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Nhóm:</span>
                    <asp:DropDownList ID="ddlGroupSupport" runat="server" AppendDataBoundItems="true">
                    </asp:DropDownList>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú:</span>
                    <asp:TextBox ID="txtSupportDescription" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú(en):</span>
                    <asp:TextBox ID="txtSupportDescription_en" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Vị trí:</span>
                    <asp:TextBox ID="txtSupportIndex" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Chưa nhập vị trí support"
                        ControlToValidate="txtSupportIndex" ValidationGroup="Support" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Vị trí support phải là số từ 0 đến 9999"
                        ControlToValidate="txtSupportIndex" ValidationGroup="Support" Display="Dynamic"
                        MinimumValue="0" MaximumValue="9999" Type="Integer">*</asp:RangeValidator>
                </div>
                <div>
                    <asp:Button ID="btnSupportSave" runat="server" Text="Lưu" Width="80px" Style="margin-right: 2px;
                        margin-left: 100px" CommandName="Insert" ValidationGroup="Support" OnClick="btnSupportSave_Click" />
                    <asp:Button ID="btnSupportNew" runat="server" Text="Thêm mới" Width="80px" Style="margin-right: 2px"
                        Visible="false" OnClick="btnSupportNew_Click" />
                    <asp:Button ID="btnSupportDelete" runat="server" Text="Xoá" Width="80px" Visible="false"
                        OnClick="btnSupportDelete_Click" />
                </div>
            </div>
            <div style="padding: 5px; border: solid 1px #ccc; float: left; background: #f4f4f4;
                margin-top: 10px;">
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Số điện thoại:</span>
                    <asp:TextBox ID="txtPhone" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="Chưa nhập số điện thoại" ValidationGroup="Hotline" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="Sai định dạng số điện thoại" ValidationExpression="^[\d|\+|\(]+[\)|\d|\s|-]*[\d]$"
                        ValidationGroup="Hotline" Display="Dynamic">*</asp:RegularExpressionValidator>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú:</span>
                    <asp:TextBox ID="txtHotlineDescription" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú(en):</span>
                    <asp:TextBox ID="txtHotlineDescription_en" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Nhóm:</span>
                    <asp:DropDownList ID="ddlGroupHotline" runat="server" AppendDataBoundItems="true">
                    </asp:DropDownList>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Vị trí:</span>
                    <asp:TextBox ID="txtHotlineIndex" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Chưa nhập vị trí hotline"
                        ControlToValidate="txtHotlineIndex" ValidationGroup="Hotline" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="Vị trí hotline phải là số từ 0 đến 9999"
                        ControlToValidate="txtHotlineIndex" ValidationGroup="Hotline" Display="Dynamic"
                        MinimumValue="0" MaximumValue="9999" Type="Integer">*</asp:RangeValidator>
                </div>
                <div>
                    <asp:Button ID="btnHotlineSave" runat="server" Text="Lưu" Width="80px" Style="margin-right: 2px;
                        margin-left: 100px" CommandName="Insert" ValidationGroup="Hotline" OnClick="btnHotlineSave_Click" />
                    <asp:Button ID="btnHotlineNew" runat="server" Text="Thêm mới" Width="80px" Style="margin-right: 2px"
                        Visible="false" OnClick="btnHotlineNew_Click" />
                    <asp:Button ID="btnHotlineDelete" runat="server" Text="Xoá" Width="80px" Visible="false"
                        OnClick="btnHotlineDelete_Click" />
                </div>
            </div>
            <div style="padding: 5px; border: solid 1px #ccc; float: left; background: #f4f4f4;
                margin-top: 10px;">
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Mail:</span>
                    <asp:TextBox ID="txtMailContact" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtMailContact"
                        ErrorMessage="Chưa nhập mail liên hệ nhóm" ValidationGroup="ContactGroup" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="ContactGroup" runat="server" ControlToValidate="txtMailContact"
                        ErrorMessage="Không đúng định dạng mail liên hệ nhóm" Display="Dynamic">*</asp:RegularExpressionValidator>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Nhóm:</span>
                    <asp:DropDownList ID="ddlGroupContact" runat="server" AppendDataBoundItems="true">
                    </asp:DropDownList>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú:</span>
                    <asp:TextBox ID="txtDescriptionContact" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Ghi chú(en):</span>
                    <asp:TextBox ID="txtDescriptionContact_en" runat="server" Width="250px"></asp:TextBox>
                </div>
                <div style="margin-bottom: 5px;">
                    <span style="color: #555; width: 100px; text-align: right; float: left; display: block">
                        Vị trí:</span>
                    <asp:TextBox ID="txtDisplayOrderContact" runat="server" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Chưa nhập vị trí liên hệ nhóm"
                        ControlToValidate="txtDisplayOrderContact" ValidationGroup="ContactGroup" Display="Dynamic">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator4" runat="server" ErrorMessage="Vị trí liên hệ nhóm phải là số từ 0 đến 9999"
                        ControlToValidate="txtDisplayOrderContact" ValidationGroup="ContactGroup" Display="Dynamic"
                        MinimumValue="0" MaximumValue="9999" Type="Integer">*</asp:RangeValidator>
                </div>
                <div>
                    <asp:Button ID="btnSaveContactGroup" runat="server" Text="Lưu" Width="80px" Style="margin-right: 2px;
                        margin-left: 100px" CommandName="Insert" ValidationGroup="ContactGroup" OnClick="btnSaveContactGroup_Click" />
                    <asp:Button ID="btnNewContactGroup" runat="server" Text="Thêm mới" Width="80px" Style="margin-right: 2px"
                        Visible="false" OnClick="btnNewContactGroup_Click" />
                    <asp:Button ID="btnDeleteContactGroup" runat="server" Text="Xoá" Width="80px" Visible="false"
                        OnClick="btnDeleteContactGroup_Click" />
                </div>
            </div>
        </div>
        <div style="width: 390px; float: left; margin-top: 10px;">
            <div style="float: right; width: 390px;">
                <asp:GridView ID="grvGroup" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Width="400px" AllowPaging="True" PageSize="5" CssClass="grid" OnPageIndexChanging="grvGroup_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Tên nhóm" ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <%# Eval("Name")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Vị trí" ItemStyle-HorizontalAlign="left"
                            ItemStyle-Width="50">
                            <ItemTemplate>
                                <%# Eval("Index")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="40px"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px">
                            <ItemTemplate>
                                <asp:ImageButton ID="imbGroupEdit" runat="server" ImageUrl="~/WebmasterTool/Images/Edit.gif"
                                    CommandArgument='<%# Eval("ID") %>' OnCommand="imbGroupEdit_Command"></asp:ImageButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="40px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table align="center" bgcolor="#ffffcc" border="0" width="100%">
                            <tr>
                                <td align="center" height="50">
                                    <div id="EmptyData" align="center">
                                        Chưa có dữ liệu.</div>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
            <div style="float: right; width: 390px; margin-top: 10px;">
                <asp:GridView ID="grvSupporters" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Width="400px" AllowPaging="True" PageSize="5" CssClass="grid" OnPageIndexChanging="grvSupporters_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Nickname" ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <%# Eval("Nickname") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="100" HeaderText="Ghi chú"
                            ItemStyle-HorizontalAlign="left" ItemStyle-Width="100">
                            <ItemTemplate>
                                <%# Eval("ShowName") %>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" Width="80px"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="50" HeaderText="Loại"
                            ItemStyle-HorizontalAlign="left" ItemStyle-Width="50">
                            <ItemTemplate>
                                <%# Eval("TypeSupport")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" Width="50px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Thứ tự" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("Index") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="30px"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:ImageButton ID="imbSupportEdit" runat="server" ImageUrl="~/WebmasterTool/Images/Edit.gif"
                                    CommandArgument='<%# Eval("ID") %>' OnCommand="imbSupportEdit_Command"></asp:ImageButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table align="center" bgcolor="#ffffcc" border="0" width="100%">
                            <tr>
                                <td align="center" height="50">
                                    <div id="EmptyData" align="center">
                                        Chưa có dữ liệu.</div>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
            <div style="float: right; width: 390px; margin-top: 10px;">
                <asp:GridView ID="grvHotLine" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Width="400px" AllowPaging="True" PageSize="5" CssClass="grid" OnPageIndexChanging="grvHotLine_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Số điện thoại"
                            ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <%# Eval("number") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Ghi chú" ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <%# Eval("description")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Thứ tự" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("index") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="80px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="40px"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px">
                            <ItemTemplate>
                                <asp:ImageButton ID="imbHotlineEdit" runat="server" ImageUrl="~/WebmasterTool/Images/Edit.gif"
                                    CommandArgument='<%# Eval("ID") %>' OnCommand="imbHotlineEdit_Command"></asp:ImageButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="40px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table align="center" bgcolor="#ffffcc" border="0" width="100%">
                            <tr>
                                <td align="center" height="50">
                                    <div id="EmptyData" align="center">
                                        Chưa có dữ liệu.</div>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
            <div style="float: right; width: 390px; margin-top: 10px;">
                <asp:GridView ID="grvContactGroup" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Width="400px" AllowPaging="True" PageSize="5" CssClass="grid" OnPageIndexChanging="grvContactGroup_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Mail" ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <%# Eval("Mail")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="100" HeaderText="Ghi chú"
                            ItemStyle-HorizontalAlign="left" ItemStyle-Width="100">
                            <ItemTemplate>
                                <%# Eval("ShowName") %>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left" Width="80px"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Thứ tự" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Eval("Index") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="30px"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:ImageButton ID="imbContactEdit" runat="server" ImageUrl="~/WebmasterTool/Images/Edit.gif"
                                    CommandArgument='<%# Eval("ID") %>' OnCommand="imbContactEdit_Command"></asp:ImageButton>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table align="center" bgcolor="#ffffcc" border="0" width="100%">
                            <tr>
                                <td align="center" height="50">
                                    <div id="EmptyData" align="center">
                                        Chưa có dữ liệu.</div>
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
